﻿<%@ Page Title="" Language="C#" MasterPageFile="~/User/User.Master" AutoEventWireup="true" CodeBehind="SystemParam_Query.aspx.cs" Inherits="CoolERP_Web.User.SystemParam_Query" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
        <td class=tbHead_L></td>
        <td class=tbHead_M><div><b>系统参数定义</b></div></td>
        <td class=tbHead_R></td>
    </tr>
    <tr>
        <td class=tbBody_L></td>
        <td class=tbBody_M>
        <ul class=tags style="width:70%">
            <li class=liLeft><asp:ImageButton ID="btnAdd" runat="server" ImageUrl="~/Images/Common/btn_add0.png" OnClick="btnAdd_Click" /></li>
            <li class=liRight><asp:ImageButton ID="btnDel" runat="server" ImageUrl="~/Images/Common/btn_del0.png" OnClick="btnDel_Click" OnClientClick="return isCheck('GridView1');" /></li>
        </ul>
        <asp:GridView ID="GridView1" Width=70% DataKeyNames="key" runat="server" CssClass="grvCSS" AutoGenerateColumns="False" AllowPaging="True"
            PageSize=20 ClientIDMode=Static OnRowEditing="GridView1_RowEditing" OnRowUpdating="GridView1_RowUpdating" OnRowCancelingEdit="GridView1_RowCancelingEdit" OnPreRender="GridView1_PreRender">
            <Columns>
                <asp:TemplateField HeaderStyle-Width=60px>
                    <HeaderTemplate><label><input type="checkbox" onclick="checkAll('GridView1',this)" />全选</label></HeaderTemplate>
                    <ItemTemplate><input type=checkbox id="chkSel" name="chkSel" runat=server value='<%# Eval("key") %>' /></ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="键">
                    <ItemTemplate><div style="text-align:left; margin-left:10px"><%# Eval("key") %></div></ItemTemplate>
                    <EditItemTemplate><%# Eval("key")%></EditItemTemplate>
                    <FooterTemplate><asp:TextBox ID="txtKey" runat="server"  MaxLength=50/></FooterTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="值">
                    <ItemTemplate><%# Eval("value")%></ItemTemplate>
                    <EditItemTemplate><asp:TextBox ID="txtValue" runat="server" Text='<%# Eval("value")%>'/></EditItemTemplate>
                    <FooterTemplate><asp:TextBox ID="txtValue" runat="server"/></FooterTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="备注">
                    <ItemTemplate><div style="text-align:left; margin-left:10px"><%# Eval("bz")%></div></ItemTemplate>
                    <EditItemTemplate><asp:TextBox ID="txtBZ" runat="server" Text='<%# Eval("bz")%>'/></EditItemTemplate>
                    <FooterTemplate><asp:TextBox ID="txtBZ" runat="server"/></FooterTemplate>
                </asp:TemplateField>
                <asp:TemplateField ShowHeader="False">
                    <ItemTemplate>
                    <asp:ImageButton ID="btnEdit" runat="server" ImageUrl="~/Images/Common/btn_edit0.png" CommandName="Edit" /></ItemTemplate>
                    <EditItemTemplate>
                    <asp:ImageButton ID="btnSave" runat="server" ImageUrl="~/Images/Common/btn_save0.png" CommandName="Update" />&nbsp;
                    <asp:ImageButton ID="btnCancel" runat="server" ImageUrl="~/Images/Common/btn_cancel0.png" CommandName="Cancel" />
                    </EditItemTemplate>
                    <FooterTemplate>
                        <asp:ImageButton ID="btnSave" runat="server" ImageUrl="~/Images/Common/btn_save0.png" OnClick="btnSave_Click" />&nbsp;
                        <asp:ImageButton ID="btnCancel" runat="server" ImageUrl="~/Images/Common/btn_cancel0.png" OnClick="btnCancel_Click" />
                    </FooterTemplate>
                </asp:TemplateField>
            </Columns>
            <PagerSettings Visible=false />
            </asp:GridView>
            <div style="width:70%;">
            <webdiyer:AspNetPager ID="AspNetPager1" runat="server" AlwaysShow="True" CssClass="pager" UrlPaging="false" ShowCustomInfoSection="Left"
                FirstPageText="首页" LastPageText="尾页" PrevPageText="前页" NextPageText="后页" OnPageChanged="AspNetPager1_PageChanged" 
                TextAfterPageIndexBox="页" TextBeforePageIndexBox="转到" PageIndexBoxType="TextBox" ShowPageIndexBox="Always" 
                SubmitButtonText="Go" CustomInfoHTML="共%RecordCount%条数据，每页%PageSize%条，共%PageCount%页，当前为第%CurrentPageIndex%页">
            </webdiyer:AspNetPager></div>
            <asp:Panel ID="panMsg" runat="server" ClientIDMode=Static CssClass="msg24_attention" Visible=false>无相关数据</asp:Panel>
        </td>
        <td class=tbBody_R></td>
    </tr>
    <tr>
        <td class=tbFoot_L></td>
        <td class=tbFoot_M></td>
        <td class=tbFoot_R></td>
    </tr>
</table>
</asp:Content>
